<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<fieldset><legend>回访记录</legend>
<table class="list">
	<thead>
		<tr>
			<th>日&nbsp;&nbsp;期</th>
			<th>空腹血糖</th>
			<th>餐后2h血糖</th>
			<th>运动时间</th>
			<th>需要医生回访</th>
			<th>回访状态</th>
			<th>操&nbsp;&nbsp;作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${patient.revisits}" var="revisit" varStatus="varStatus">
			<c:set var="tr_class"
				value="${varStatus.index % 2 == 0 ? 'odd' : 'even'}" />
			<tr class="${tr_class}">
				<td><c:out value="${revisit.revisitTime}" /></td>
				<td><c:out value="${revisit.emptyBloodSugar}" />&nbsp;mmol/L</td>
				<td><c:out value="${revisit.twoHourBloodSugar}" />&nbsp;mmol/L</td>
				<td><c:out value="${revisit.sportTime}" />&nbsp;分钟</td>
				<td><c:out value="${revisit.isNeedDoctor}" /></td>
				<td><c:out value="${revisit.revisitStatus}" /></td>
				<td><c:url value="/revisit/view.do" var="revisitView">
					<c:param name="revisitId" value="${revisit.revisitId}" />
				</c:url> <c:url value="/revisit/edit.do" var="revisitEdit">
					<c:param name="revisitId" value="${revisit.revisitId}" />
				</c:url><a href="${revisitView}">[查&nbsp;看]</a>&nbsp;&nbsp;&nbsp;<a
					href="${revisitEdit}">[修&nbsp;改]</a></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
</fieldset>